package com.yun.zf.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yun.zf.common.admin.dto.house.DocumentCountDto;
import com.yun.zf.common.admin.model.house.DoucumentInfoMo;
import com.yun.zf.common.app.domain.ZfHouseDocumentInfo;
import com.yun.zf.common.vo.Response;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * 证件信息表 服务类
 * </p>
 *
 * @author cj
 * @since 2021-03-01
 */
public interface ZfHouseDocumentInfoService extends IService<ZfHouseDocumentInfo> {


    public  List<DoucumentInfoMo> getDocumentInfo(Long basicId, Long provinceCode, Long cityCode,int type);

    /**
     * 房源证件上传返回路径给到前台
     * @param files
     * @param request
     * @param provinceCode
     * @param cityCode
     * @return
     */
    public Response uploadDoucument(MultipartFile[] files , HttpServletRequest request, Long provinceCode, Long cityCode);


    Response delDoucument(String ids, Long provinceCode, Long cityCode);


    /**
     * 统计房源证件
     * @param basicId
     * @param provinceCode
     * @param cityCode
     * @return
     */
    public List<DocumentCountDto> getDocumentInfo(Long basicId, Long provinceCode, Long cityCode);


}
